package com.ime.elasticsearch.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(
        prefix = "com.ime.elasticsearch"
)
public class ElasticSearchConfig {
    private String clusterName;
    private String ip;
    private int port;
    public static final String IME_INDEX = "ime";
    public static final String IME_Type = "cache";
    public static final String IME_INDEX_SETTINGS = "{\n\"index.mapping.total_fields.limit\": 10000\n}";

    public ElasticSearchConfig() {
    }

    public String getClusterName() {
        return this.clusterName;
    }

    public void setClusterName(String clusterName) {
        this.clusterName = clusterName;
    }

    public String getIp() {
        return this.ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public int getPort() {
        return this.port;
    }

    public void setPort(int port) {
        this.port = port;
    }
}
